<?php
if($_SERVER["DOCUMENT_ROOT"] == "")$_SERVER["DOCUMENT_ROOT"] = "/var/www/lottou";
include("/var/www/lottou/config.inc.php");
session_start();

include($_SERVER["DOCUMENT_ROOT"]."/common/betparam/AnimalsParams_1.inc.php");
include($_SERVER["DOCUMENT_ROOT"]."/common/Lotto.inc.php");

$_LangPath = "operate";
include($_SERVER["DOCUMENT_ROOT"]."/language/selectlanguage_admin.php");

$arrLangDir = array("operate", "supplement", "realbet", "realsupplement", "operate3d", "realbet3d", "realsupplement3d", "supplement3d", "operate7star", "realbet7star", "realsupplement7star", "supplement7star", "operate10m", "realbet10m", "operate", "realbet");//);
$arrType = array("Operate", "Supplement", "RealBet", "RealSupplement", "Operate3D", "RealBet3D", "RealSupplement3D", "Supplement3D", "Operate7Star", "RealBet7Star", "RealSupplement7Star", "Supplement7Star", "Operate10M", "RealBet10M", "Operate2", "RealBet2");//);
$arrLang = array(1 => "big5", 3 => "gb2312");

foreach($arrType as $key => $strDir){
	foreach($arrLang as $intLang => $strCharset){
		print "Dir: ".$strDir." Lang: ".$intLang;
		$_intLang = $intLang;
		$_Charset = $strCharset;
		$_LangPath = $arrLangDir[$key];

		$strTemplatePath = __Admintemplate_Path."/".$strDir."/";
		//include($_SERVER["DOCUMENT_ROOT"]."/language/sameparam_".$_intLang.".inc.php");
		include($_SERVER["DOCUMENT_ROOT"]."/language/lang_admin/".$_LangPath."_".$_intLang.".lang.php");
		include($_SERVER["DOCUMENT_ROOT"]."/k_admin/".$strDir."/GetTemplate.php");
		print " End: OK! ".date("Y-m-d H:i:s")."<br />\n";
	} //foreach($arrLang as $intLang){
}
?>